//
//  SXPopMenu.h
//  Weibo1
//
//  Created by dfpo on 15/2/15.
//  Copyright (c) 2015年 dfpo. All rights reserved.
//

#import <UIKit/UIKit.h>
@class SXPopMenu;

@protocol SXPopMenuDelegate <NSObject>
@optional
- (void)SXPopMenuDidDismissed:(SXPopMenu *)menu;
- (void)SXPopMenuDidShow:(SXPopMenu *)menu;
@end

@interface SXPopMenu : UIView
@property (nonatomic, weak) id<SXPopMenuDelegate> delegate;

+ (instancetype)menu;

/**
 *  显示
 */
- (void)showFrom:(UIView *)from;
/**
 *  销毁
 */
- (void)dismiss;

/**
 *  内容
 */
@property (nonatomic, strong) UIView *content;
/**
 *  内容控制器
 */
@property (nonatomic, strong) UIViewController *contentController;
@end
